<!DOCTYPE html>
<html lang="en" id="modernizrcom" class="no-js">
    <head>

        <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
        <META HTTP-EQUIV="Expires" CONTENT="-1">

        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <title><?= $title ?></title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <link rel="shortcut icon" href="assets/img/favicon.ico">

        <link rel="stylesheet" href="<?= base_url() ?>assets/css/main.css">

        <script src="<?= base_url() ?>assets/js/libs/modernizr-2.0.6.js"></script>

        <script type="text/javascript">
            var base_url = '<?= base_url() ?>';
        </script>

        <script type="text/javascript">

            var _gaq = _gaq || [];
            _gaq.push(['_setAccount', 'UA-37502759-1']);
            _gaq.push(['_trackPageview']);

            (function() {
                var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
                ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
                var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
            })();

        </script>

    </head>

    <body>
        <div id="fb-root"></div>
        <script>(function(d, s, id) {
            var js, fjs = d.getElementsByTagName(s)[0];
            if (d.getElementById(id)) return;
            js = d.createElement(s); js.id = id;
            js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
            fjs.parentNode.insertBefore(js, fjs);
        }(document, 'script', 'facebook-jssdk'));</script>

        <div class="wrapp">

            <div id="header" class="clearfix">

<!--                <div class="admin_preview">
                    <a class="btn btn-primary" href="http://www.ibookhotel.me/demo" target="_blank">Admin preview</a>
                </div>-->

                <a href="<?= base_url() ?>" id="logo">&nbsp;</a>

                <div class="head-contact">
                    kontakt: <strong>+382 (0)69 069 982;</strong> <br>
                    <a href="mailto:info@ibookhotel.me">info@ibookhotel.me</a>
                </div>

                <div id="social_links">
                    <? $this->load->view('parts/social') ?>
                </div>


            </div>

            <div id="menu" class="clearfix">
                <ul>
                    <? $active='class="active"'; ?>
                    <? $method=$this->router->method; ?>
                    <li><a href="<?= base_url('home') ?>" <?
                    if($method == "home_page")
                    {
                        echo $active;
                    }
                    ?>>Home</a></li>
                    <li><a href="<?= base_url('osistemu') ?>" <?
                           if($method == "osistemu")
                           {
                               echo $active;
                           }
                    ?>>O sistemu</a></li>
                    <li><a href="<?= base_url('karakteristike') ?>" <?
                           if($method == "karakteristike")
                           {
                               echo $active;
                           }
                    ?>>Karakteristike sistema</a></li>
                    <li><a href="<?= base_url('internet_marketing') ?>" <?
                           if($method == "internet_marketing")
                           {
                               echo $active;
                           }
                    ?>>Internet marketing</a></li>
<!--                    <li><a href="<?= base_url('posao') ?>" <?
                           if($method == "posao")
                           {
                               echo $active;
                           }
                    ?>>Posao</a></li>-->
                    <li><a href="<?= base_url('vijesti') ?>" <?
                           if($method == "vijesti")
                           {
                               echo $active;
                           }
                    ?>>Vijesti</a></li>
                </ul>
            </div>

            <div id="body">

                <div class="pad10 clearfix"><?= $contents ?></div></div>

            <div id="footer"><p>Copyright © 2013 NU SIT Bar. All Rights Reserved.</p></div>

        </div>

        <!--<script src="http://code.jquery.com/jquery-1.8.2.js"></script>-->
        <script type="text/javascript" src="<?= base_url(); ?>assets/js/libs/jquery-1.7.1.min.js"></script>
        <script type="text/javascript" src="<?= base_url(); ?>assets/js/libs/jquery.validate.js"></script>
        <script type="text/javascript" src="<?= base_url(); ?>assets/js/libs/thickbox.js"></script>
        <script type="text/javascript" src="<?= base_url(); ?>assets/js/main.js"></script>
        <!--[if (gte IE 6)&(lte IE 8)]><script type="text/javascript" src="<?= base_url(); ?>assets/js/libs/selectivizr-min.js"></script><![endif]-->

    </body>

</html>